<?php



class Request {
	public static function get($key, $default = '', $raw = false) {
		$r = isset($_GET[$key]) ? trim($_GET[$key]) : $default;
		return strip_tags(stripslashes($r));
	}

	public static function post($key, $default = '', $raw = false) {
		$r = isset($_POST[$key]) ? trim($_POST[$key]) : $default;
		return $raw ? $r : strip_tags(stripslashes($r));
	}

	public static function filter($str) {
		return str_replace(" ", "_", $str);
	}
}
